﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Forest.Lion.Data;
using Forest.Lion.Model;

namespace Forest.Lion.Domain.Handlers
{
    public class LovHandler
    {
        private readonly ILovRepository _lovRepository;

        public LovHandler(ILovRepository lovRepository)
        {
            this._lovRepository = lovRepository;
        }

        public Lov GetById(Guid lovId)
        {
            return _lovRepository.GetLov(lovId);
        }

        public IEnumerable<Lov> GetListByParentId(Guid parentId)
        {
            return _lovRepository.GetListByParentId(parentId);
        }

        public IEnumerable<Lov> GetSubListByParentId(Guid parentId)
        {
            return _lovRepository.GetSubListByParentId(parentId);
        }
    }
}
